import express, { Router } from "express"

import { render } from "../render"

export const router: Router = express.Router()

// API路由
router.get("/:lang([a-z]{2,2})?", render)
router.get("/:lang([a-z]{2,2})?/*", render)

export default router
